package org.openstock.impl.def.charting.ui.swing.model;

import org.openstock.api.charting.model.Axis;
import org.openstock.api.charting.model.CartecianChart;
import org.openstock.api.charting.model.Crosshair;
import org.openstock.api.charting.model.Grid;
import org.openstock.impl.def.core.factory.Factory;
import org.openstock.impl.def.core.ui.swing.wrapper.JComponent;

@SuppressWarnings("unchecked")
public class DefaultSwingStockChart extends AbstractSwingChart implements CartecianChart<JComponent> {
	private static final long serialVersionUID = 3586585740454975587L;

	private Axis horizontalAxis;
	private Axis verticalAxis;
	private Grid grid;
	private Crosshair crosshair;
	
	public DefaultSwingStockChart() {
		super();
		setChartDataModel(Factory.getPrototype(DefaultChartDataModel.class));
	}
	
	public Axis getVerticalAxis() {
		return verticalAxis;
	}

	public Axis getHorizontalAxis() {
		return horizontalAxis;
	}

	public Grid getGrid() {
		return grid;
	}

	public Crosshair getCrosshair() {
		return crosshair;
	}

	public void setHorizontalAxis(Axis horizontalAxis) {
		this.horizontalAxis = horizontalAxis;
	}

	public void setVerticalAxis(Axis verticalAxis) {
		this.verticalAxis = verticalAxis;
	}

	public void setGrid(Grid grid) {
		this.grid = grid;
	}

	public void setCrosshair(Crosshair crosshair) {
		this.crosshair = crosshair;
	}

}
